<template>
  <div class="home-header">
    <div>
      <i class="iconfont icon-xiaomi"></i>
    </div>
    <div class="search" @click="goSearch()">
      <i class="iconfont icon-sousuo"></i>
      <span>搜索商品名称</span>
    </div>
    <div>
      <i class="iconfont icon-wode"></i>
    </div>
  </div>
</template>

<script>
export default {
  name: "Header",
  methods: {
    goSearch() {
      this.$router.push("/search");
    },
  },
};
</script>

<style scope lang="scss">
.home-header {
  display: flex;
  top: 0;
  left: 0;
  justify-content: space-around;
  height: 1.173333rem;
  line-height: 1.173333rem;
  background-color: #f2f2f2;
  .search {
    margin: auto 0;
    width: 68%;
    height: 0.8rem;
    line-height: 0.8rem;
    font-size: 0.426667rem;
    color: #b2b2b2;
    background-color: #fff;
    .icon-sousuo {
      margin: 0 0.266667rem;
    }
  }
  .icon-xiaomi {
    color: #ff6d07;
    font-size: 0.64rem;
  }
  .icon-wode {
    font-size: 0.48rem;
  }
}
</style>